-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Expose ExplainEnum
in the GQL schema
#1204
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1204 +/- ##
===========================================
- Coverage 68.70% 68.62% -0.09%
===========================================
Files 181 181
Lines 17123 17125 +2
===========================================
- Hits 11765 11752 -13
- Misses 4407 4417 +10
- Partials 951 956 +5
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Orpheus for find and sorting this! Prod code looks good, and thanks for adding the test - I do think that query needs to be trimmed down a bit before merge though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Orpheus!
Adds ExplainEnum to the GQL schema. It fixes the introspection query error with Altair and GraphiQL. Adds a test for the enum existence in resulting response schema.
Adds ExplainEnum to the GQL schema. It fixes the introspection query error with Altair and GraphiQL. Adds a test for the enum existence in resulting response schema.
Relevant issue(s)
Resolves #1202
Description
Adds
ExplainEnum
to the GQL schema.It fixes the introspection query error with Altair and GraphiQL.
Adds a test for the enum exist in resulting response schema . More general test cases should be preferred to this, such as general GraphQL schema validation.
(Discussion point?: It is a draft PR because I'm unsure whether to also change the schema integration test suite to handle graphql schema validation as a way to test 'large' schema responses from 'large' introspection queries.
Resolution: use
assertContains
to test the specific property, later introduce schema validation testing.)Tasks
How has this been tested?
Specify the platform(s) on which this was tested: